function checkLogin(){
    const login = sessionStorage.getItem("login")
    if(login != "true"){
        alert("请先登录")
        location.href = "../html/login.html"
    }
}
checkLogin()


 